Speculative Nondeterminism
ثبت نشده
چکیده
We propose a new programmable concurrency control framework called speculative nondeterminism for real time, “open” and distributed agents. In this framework, dynamic and concurrent agent programs affect each other through a centralized store which represents shared resources. Our framework has novel programming constructs which allows an agent to speculate against the future by multiple exclusive choices that encode different strategies to achieve its goals. The agent can make multiple choices which execute together but in isolation, thus, there is a combinatorial effect through the joint interaction. Unlike other concurrency frameworks, speculation models many potential outcomes and thus improves the chances of an agent reaching a desired outcome. Each possibility is represented by a “virtual world.” Agents operate in the virtual worlds created by the system, the framework provides mechanisms for agents which have reached their objective but yet are represented by multiple possible worlds to cleanly exit. We also provide mechanisms to reduce the possibilities where an agent can commit to certainly possibilities and give up on others, but this is rather different from conventional committed choice. This paper presents the design, operational semantics of speculative nondeterminism, small but practical examples illustrating the use of the language and experimental results of a prototype.
منابع مشابه
ANTLRWorks: an ANTLR grammar development environment
Programmers tend to avoid using language tools, resorting to ad-hoc methods, because tools can be hard to use, their parsing strategies can be difficult to understand and debug, and their generated parsers can be opaque black-boxes. In particular, there are two very common difficulties encountered by grammar developers: Understanding why a grammar fragment results in a parser nondeterminism and...
متن کاملOn the Inherently Speculative Nature of Nondeterministic And-Parallelism
proposed parallel execution model. This aspect concerns whether the model is to return: 1) one and only one answer to a query, regardless of how many exist, 2) any number of answers perhaps even all, but only one at a time, or 3) all answers to a query all at once. In Horn-clause logic programming, it is necessary for all subgoals in a clause to succeed for the clause itself to succeed. As a re...
متن کاملThe Effects of Economic Sanctions and Speculative Attacks on Inflation
This paper surveys the persian monetary crises due to economic sanctions and speculative attacks that leads to high inflation. Economic sanctions are associated with various forms of trade barriers and restriction on financial transactions. Among the most influential sanctions on Iran's oil export and central bank sanctions are noted that their Aims to reduce Iran's oil revenues and Devaluation...
متن کاملHigh Level Thread-Based Competitive Or-Parallelism in Logtalk
This paper presents the logic programming concept of threadbased competitive or-parallelism, which combines the original idea of competitive or-parallelism with committed-choice nondeterminism and speculative threading. In thread-based competitive or-parallelism, an explicit disjunction of subgoals is interpreted as a set of concurrent alternatives, each running in its own thread. The individua...
متن کاملIdentification the Periods of Formation and Bursting of Speculative Bubbles in Iranian Stock Market Using Quantitative Models
The purpose of this study is to investigate and identify the periods of formation and bursting of speculative bubbles in Iran's capital market by creating a state space model and two-mode switching regime (mode 1 is bubble growth and burst stage and mode 2 is the time of bubble loss) during the period from April 2011 to March 2018. The Oxmetrics 7 software is used to investigate the existence o...
متن کامل